
  <template>
	<swiper class="screen-swiper" :class="true?'square-dot':'round-dot'" :indicator-dots="true" :circular="true"
		:autoplay="true" interval="5000" duration="500">
		<swiper-item style="position: relative;" v-for="(item,index) in BannerList" :key="index">
			<image :src="item.ImageUrls|pictureFilter" mode="aspectFill"></image>
			<view style="position: absolute;bottom: 40upx;left: 20upx;font-weight: bold;font-size: 40upx;color:white">
				{{item.Title}}
			</view>
		</swiper-item>
	</swiper>
</template>

<script>
	import store from "@/store";
	import {
		mapGetters
	} from "vuex";
	export default {

		computed: {
			...mapGetters([
				'token', 'RoleTypeFormat', "userInfo", "userId"
			])
		},
		data() {
			return {
				BannerList: [],
			};
		},
		mounted() {
			this.BannerListApi();
		},
		methods: {
			async BannerListApi() {
				let {
					Data: {
						Items
					}
				} = await this.$http.PostAsync("/Banner/List", {

				});
				this.BannerList = Items;
			},
		}
	}
</script>

<style lang="scss">

</style>
